package views
{
	import inerface.IReadyPanel;
	
	import main.ViewSubBase;
	
	import panel.help.ReadyPanel;
	
	public class ReadyView extends ViewSubBase
	{
		private var _panel:IReadyPanel;
		public function ReadyView()
		{
			super();
		}
		
		public override function show():void
		{
			this.data.xmlLoaderManager.ready.init(render);
		}
		
		protected override function render():void
		{
			if(!_panel)
			{
				_panel = new ReadyPanel();
				_panel.init(this.layout.stage,this.resourceLoader,this.lang,this.data.uri);
			}
			_panel.show(this.data.xmlLoaderManager.ready.itemList);
			this.addView(_panel);
		}
		
	}
}